#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START gawk

reset_mtime gawk gawk/configure.ac
mkdir -p build/gawk
cd build/gawk
../../gawk/configure \
	${CONFIGURE_ARGS} \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/gawk
ln -srf "$stage/$prefix/bin/gawk" "$stage/$prefix/bin/awk"

# RECIPE END gawk
